package com.itheima.sfbx.task.job;

import com.xxl.job.core.biz.model.ReturnT;
import com.xxl.job.core.handler.annotation.XxlJob;
import org.springframework.stereotype.Component;

@Component
public class HelloXxlJob {

    @XxlJob(value = "hello-job")
    public ReturnT<String> execute(String param) {
        for (int i = 1; i <= 100; i++) {
            System.out.println("HelloXxlJob.execute" + i);
        }
        return ReturnT.SUCCESS;
    }
}
